package com.example.chcrm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chcrm.entity.common.ResponseMsg;
import com.example.chcrm.entity.employee.EmployeeVo;
import com.example.chcrm.entity.employee.EssEmployee;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**
 * @Author 邹
 * @Date 2025/3/4 10:09
 * @Version 1.0
 */

public interface EssEmployeeService <T> {
    /**
     *登录
     **/
    public ResponseMsg<Object> login(EssEmployee request);

    /**
     * 分页查询用户
     *
     * @param essEmployee
     * @return
     */
    ResponseMsg<IPage<EssEmployee>> pageList(EssEmployee essEmployee);

    ResponseMsg<Object> add(EssEmployee employee, EmployeeVo employeeVo);

    ResponseMsg<Object> disable(EssEmployee essEmployee, EmployeeVo empVo);

    ResponseMsg<Object> update(EssEmployee essEmployee, EmployeeVo empVo);

    ResponseMsg<Object> reset(EssEmployee essEmployee, EmployeeVo empVo);

    ResponseMsg<Object> userInfo(EmployeeVo id);

    ModelAndView userExport(EssEmployee employee, EmployeeVo empVo);

    ResponseMsg<Object> detail(String id);

    ResponseMsg<Object> updatePassword(String oldPwd, String newPwd, EmployeeVo empVo);
}
